package com.android.baselibrary.base

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.viewbinding.ViewBinding
import androidx.viewbinding.ViewBindings
import com.alibaba.android.arouter.launcher.ARouter
import dagger.hilt.android.AndroidEntryPoint
import kotlin.concurrent.thread

/**
 * Created by  you
 * Date: 2022/3/14
 * Time: 15:34
 */
abstract class BaseActivity<T:ViewBinding> :AppCompatActivity(){
     lateinit var mBinding: T
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
         mBinding = DataBindingUtil.setContentView(this,getLayoutId())
         ARouter.getInstance().inject(this)
        initView()
        initListener()
    }
    abstract fun getLayoutId():Int
    abstract fun initView()
    abstract fun initListener()



}